<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ page import="java.util.Calendar"%>
<script language="JavaScript" src="<%= request.getContextPath() + "/js/calendar6.js" %>"></script>

  <!--CREACION DEL FORM  -->                                        
 <html:form  action="/admin/updateFlexValueType.do"  method="post" styleId="flexValueTypeSelected" >
  <!--CAMPO OCULTO DEL FORMULARIO: CODIGO  -->
  <input type="hidden" name="applicationContextInternalCode" value='<bean:write name="flexValueTypeSelected" property="applicationContextInternalCode" />' />
  <input type="hidden" name="flexValueTypeInternalCode" value='<bean:write name="flexValueTypeSelected" property="flexValueTypeInternalCode" />' />
  

<table width="100%"  border="0" cellspacing="0" cellpadding="0" widtd="100%">
  <tr align="left"> 
     <td height="25" colspan="12" class="titulosenblanco"><table width="99%" border="0" cellpadding="0" cellspacing="0">
		  <tr> 
			
          <td align="right"><html:link page="/admin/manageFlexValue.do"><img src="<%= request.getContextPath() + "/images/b_nuevo.gif" %>" alt="Nuevo" width="22" height="22" border="0"><br>
            <span class="celdaayd">Editar lista de valores flexibles</span></html:link></td>
		  </tr>
		 <tr> 
           <td>&nbsp;</td>
         </tr>  
      </table></td>		
  </tr>   
  <!--TITULO DEL FORMULARIO DE ACTUALIZACION  -->
  <tr align="left"> 
   <td height="25" colspan="12" align="center" class="titulosenblanco"> 
    <p>
     <STRONG>Actualizacion De Tipo de Valor Flexible </STRONG>
    </p>
    <p>&nbsp; </p>
   </td>
   </tr>
  
  <tr align="left">
   <td height="25" colspan="12" class="titulosenblanco">   
    <table width="100%" border="0" cellspacing="3" cellpadding="3" class="titulosenrojo">
  <!--CAMPO 1 DEL FORMULARIO: NOMBRE DEL VALOR FLEXIBLE -->
     <tr>
      <td width="28%">&nbsp;</td>
      <td width="23%" class="celdatabla"><strong>Nombre</strong> (*)&nbsp;&nbsp; 
      </td>
      <td width="46%"> 
       <input type="text" size= "40" class="form"  name="flexValueTypeName" value='<bean:write name="flexValueTypeSelected" property="flexValueTypeName" />'  />
      </td>
      <td width="3%">&nbsp;</td>
     </tr>
  <!--CAMPO 2 DEL FORMULARIO:  NOMBRE DE LA APLICACION ASOCIADO-->
     <tr>
		  <td width="28%">&nbsp;</td>
		  <td width="23%" valign="top" class="celdatabla"><strong>Aplicacion</strong> 
          (*)  &nbsp;&nbsp; </td>
		  <td width="46%"> 
        <html:select styleClass="form" property="applicationContextInternalCode" style="width:215" > 
				<html:options collection="applicationsList" property="code" labelProperty="name" /> 
        </html:select>
      </td>
		  <td width="3%">&nbsp;</td>
     </tr>

  <!--CAMPO 3 DEL FORMULARIO:   MANEJA CODIGOS-->
     <tr>
		  <td width="28%">&nbsp;</td>
		  <td width="23%" valign="top" class="celdatabla"><strong>Maneja Codigos</strong> 
          (*)  &nbsp;&nbsp; </td>
		  <td width="46%"> 
       <html:select styleClass="form" property="flexValueTypeAutomaticCustomCode" style="width:215" > 
        <logic:equal name="flexValueTypeSelected" property="flexValueTypeAutomaticCustomCode" value="S">
          <html:option value = "S" >Si</html:option>
          <html:option value = "N" >No</html:option>
        </logic:equal>
        <logic:equal name="flexValueTypeSelected" property="flexValueTypeAutomaticCustomCode" value="N">
          <html:option value = "N" >No</html:option>
        <html:option value = "S" >Si</html:option>
        </logic:equal>
       </html:select></td>
      </td>
		  <td width="3%">&nbsp;</td>
     </tr>

  <!--CAMPO 4 DEL FORMULARIO:   VIGENCIA-->
  <!--   <tr>
		  <td width="28%">&nbsp;</td>
		  <td class="celdatabla" width="23%"><strong>Vigencia</strong> (*)&nbsp;&nbsp; 
		  </td>
		  <td width="46%"> 
       <html:select styleClass="form" property="flexValueTypeUse" style="width:215" > 
        <logic:equal name="flexValueTypeSelected" property="flexValueTypeUse" value="S">
          <html:option value = "S" >Si</html:option>
          <html:option value = "N" >No</html:option>
        </logic:equal>
        <logic:equal name="flexValueTypeSelected" property="flexValueTypeUse" value="N">
          <html:option value = "N" >No</html:option>
        <html:option value = "S" >Si</html:option>
        </logic:equal>
       </html:select></td>
		  <td width="3%">&nbsp;</td>
     </tr>

  <!--CAMPO 5 DEL FORMULARIO: VIGENTE DESDE 
      <tr>
        <td width="28%">&nbsp;</td>
        <td class="celdatabla" width="23%"><strong>Vigente Desde</strong> &nbsp;&nbsp; 
        </td>
        <td width="46%">
        <input type="text" size= "40" class="form" value='<bean:write name="flexValueTypeSelected" property="flexValueTypeEffectiveFrom" />'  name="flexValueTypeEffectiveFrom" />
          <a href="javascript:effectiveFrom.popup();">
            <img src="<%= request.getContextPath() + "/images/cal.gif" %>" width="16" 
                  height="16" border="0" alt="Click para seleccionar la fecha">
          </a>
        </td>
        <td width="3%">&nbsp;</td>
      </tr>

  <!--CAMPO 6 DEL FORMULARIO: VIGENTE HASTA 

      <tr>
        <td width="28%">&nbsp;</td>
        <td class="celdatabla" width="23%"><strong>Vigente Hasta</strong> &nbsp;&nbsp; 
        </td>
        <td width="46%">
        <input type="text" size= "40" class="form" value='<bean:write name="flexValueTypeSelected" property="flexValueTypeEffectiveUntil" />'  name="flexValueTypeEffectiveUntil"/>
          <a href="javascript:effectiveUntil.popup();">
            <img src="<%= request.getContextPath() + "/images/cal.gif" %>" width="16" 
                  height="16" border="0" alt="Click para seleccionar la fecha">
          </a>
        </td>
        <td width="3%">&nbsp;</td>
      </tr>
-->
  <!--CAMPO 2 DEL FORMULARIO:  DESCRIPCION DEL VALOR FLEXIBLE-->
     <tr>
		  <td width="28%">&nbsp;</td>
		  <td class="celdatabla" width="23%"><strong>Descripcion</strong> &nbsp;&nbsp; 
		  </td>
		  <td width="46%"> 
       <textarea  name="flexValueTypeDescription" cols="35" rows="5" class="form"><bean:write name="flexValueTypeSelected" property="flexValueTypeDescription" /></textarea>
      </td>
		  <td width="3%">&nbsp;</td>
     </tr>



  <!--LEYENDA DE TEXTO FIJO DENTRO DEL FORMULARIO   -->
		  <tr> 
			<td class="celdatabla" colspan="3" align="center">&nbsp;Los campos marcados con (*) son obligatorios</td>
			<td width="3%">&nbsp;</td>
		  </tr>
		  <tr> 
			<td colspan="4">&nbsp;</td>
		  </tr>
  <!--BOTON DE SUBMIT   -->
		  <tr> 
			<td colspan="4" align="center"><html:image src='<%= request.getContextPath() + "/images/b_ingresar_b1.gif" %>' border="0" value='Guardar' title='Guardar' onclick='submit;' /></td>
		  </tr>
	   </table>
    </td>
  </tr>  
 </html:form>  
</table>
  <!--CALENDARIO  
  <script language="JavaScript">
    var effectiveFrom = new calendar1(document.forms['flexValueTypeSelected'].elements['flexValueTypeEffectiveFrom'],"-");
    var effectiveUntil = new calendar1(document.forms['flexValueTypeSelected'].elements['flexValueTypeEffectiveUntil'],"-");
  </script> -->
<p align="center">
  <html:link page="/admin/findFlexValueType.do">
    <img src="<%= request.getContextPath() + "/images/b_atras.gif" %>" width="24" height="15" border="0"/>
    <br/>
    <span class="celdaayd">Atras</span>
  </html:link>
</p>

